﻿#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>

typedef double Real;


typedef struct
{
	int A;
	int B;
}Context;
Context context;

void read_data(Context* ctx)
{
	
} 

void printAB(int A, int B)
{
	printf("%d/", A);
	if (B < 0)
		printf("(%d)", B);
	else
		printf("%d", B);
	printf("=");
}

void solve(Context* ctx)
{
	int k;
	int i=1;
	while (scanf("%d", &k))
	{
		if (k == 250)
			break;
		i++;
	}
	printf("%d\n", i);
}

int main()
{
	freopen("D:/Develop/GitRepos/MOOC/浙江大学/数据结构/201906/DataStructure/M2019秋C入门和进阶练习集/7-168.txt", "r", stdin);
	read_data(&context);
	solve(&context);
	return 0;
}
